package com.wyl.auth.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description 用户登录日志表
 * @Author WuYiLong
 * @Date 2025-04-13
 */
@Data
@ApiModel(value = "UserLoginLogDto对象", description = "用户登录日志表")
public class UserLoginLogDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "关联用户表id")
    private Long userId;

    @ApiModelProperty(value = "登录时间")
    private LocalDateTime loginTime;

    @ApiModelProperty(value = "登录ip")
    private String ipAddress;

    @ApiModelProperty(value = "浏览器/设备信息")
    private String userAgent;

    @ApiModelProperty(value = "0=失败, 1=成功")
    private Integer loginResult;

    @ApiModelProperty(value = "失败原因")
    private String failureReason;

    @ApiModelProperty(value = "设备类型")
    private String deviceType;

    @ApiModelProperty(value = "地理位置")
    private String location;

    @ApiModelProperty(value = "会话ID")
    private Integer sessionId;
}
